import request from '@/utils/request';


export function fdyManyConfirm(data){
  return request({
    url:"/dormitory/newRecord/fdyManyConfirm",
    method:"post",
    data
  });
}

export function fullInfo(id) {
  return request({
    url: `/dormitory/newRecord/fullInfo/${id}`,
    method: 'POST'
  });
}


export function fastConfirm() {
  return request({
    url: `/dormitory/newRecord/fastConfirm`,
    method: 'POST'
  });
}


export function jwcConfirm(id) {
  return request({
    url: `/dormitory/newRecord/jwcConfirm/${id}`,
    method: 'POST'
  });
}


export function fdyConfirm(id) {
  return request({
    url: `/dormitory/newRecord/fdyConfirm/${id}`,
    method: 'POST'
  });
}



export function listFdyRecord(query) {
  return request({
    url: '/dormitory/newRecord/listFdy',
    method: 'get',
    params: query
  })
}

export function oneConfirm(id){
  return request({
    url:`/dormitory/newRecord/oneConfirm/${id}`,
    method:"POST"
  });
}

export function initRecord(data){
  return request({
    url:"/dormitory/newRecord/initRecord",
    method:"POST",
    data
  });
}


export function sendConfirm(data){
  return request({
    url:"/dormitory/newRecord/sendConfirm",
    method:"POST",
    data
  });
}


export function exportJwc(params){
  return request({
    method: 'get',
    url:"/dormitory/newRecord/exportJwc",
    params
  });
}

// 查询住宿记录列表
export function listNewRecord(query) {
  return request({
    url: '/dormitory/newRecord/list',
    method: 'get',
    params: query
  })
}

// 查询住宿记录详细
export function getNewRecord(id) {
  return request({
    url: '/dormitory/newRecord/' + id,
    method: 'get'
  })
}

// 新增住宿记录
export function addNewRecord(data) {
  return request({
    url: '/dormitory/newRecord/add',
    method: 'post',
    data: data
  })
}

// 修改住宿记录
export function updateNewRecord(data) {
  return request({
    url: '/dormitory/newRecord/update',
    method: 'post',
    data: data
  })
}

// 删除住宿记录
export function delNewRecord(id) {
  return request({
    url: '/dormitory/newRecord/' + id,
    method: 'post'
  })
}
